package com.dalin.framework;

import com.dalin.framework.util.LogUtil;
import com.dalin.framework.util.UuidUtil;
import com.dalin.framework.vos.ResResult;

public class BaseController {
	protected LogUtil log = LogUtil.getLogger(this.getClass());
	/**
	 * 得到32位的uuid
	 * 
	 * @return
	 */
	public String get32UUID() {
		return UuidUtil.get32UUID();
	}

	public void logBefore(LogUtil logUtil, String interfaceName) {
		log.info("===");
		log.info("start");
		log.info(interfaceName);
	}

	public void logAfter(LogUtil logUtil) {
		log.info("end");
		log.info("===");
	}


	protected void startMethod(String methodName) {
		log.info("===");
		log.info("start");
		log.info(methodName);
	}

	protected ResResult getSuccessRes(Object dataObj) {
		return ResResult.getSuccessRes(dataObj);
	}
}
